package com.jiaeda.shiromaster.service.imp;

import com.jiaeda.shiromaster.entity.SysDepartment;
import com.jiaeda.shiromaster.mapper.SysDepartmentMapper;
import com.jiaeda.shiromaster.service.SysDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by chengchaopeng on 2018/6/27.
 */
@Service
public class SysDepartmentServiceImp implements SysDepartmentService {

    @Autowired
    private SysDepartmentMapper sysDepartmentMapper;

    @Override
    public SysDepartment findByDepartmentKey(String departmentKey) {
        return sysDepartmentMapper.findByDepartmentKey(departmentKey);
    }
}
